﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.Master" CodeBehind="products.aspx.vb" Inherits="VerisEdiWebsite.products"
    Title="Products" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Styles.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main">
        <p>
            EDI’s Veris systems are modular. Your system can be configured to meet your needs. Please select the tests and applications you have in mind for clinical testing and/or research projects. You will then be guided will then assemble the necessary components and propose a system configuration. <b>It is good to remember that</b> systems can be expanded to cover additional needs at a future date.
        </p>
        <asp:UpdatePanel ID="up_Main" runat="server">
            <ContentTemplate>
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="view_default" runat="server">
                        <center>
                            <asp:HyperLink ID="hl_NewCustomer" runat="server">Are you a new customer?</asp:HyperLink>
                            <br />
                            <b>Or</b>
                            <asp:HyperLink ID="hl_ReturningCustomer" runat="server">Are you a returning customer?</asp:HyperLink>
                        </center>
                    </asp:View>
                    <asp:View ID="view_Products" runat="server">
                        <p>
                            <asp:Label ID="lbl_Step1" runat="server" Text="Step 1 of 3: Product Selection" CssClass="steps"></asp:Label>
                        </p>
                        <div class="row high">
                            <div class="cbl">
                                <asp:Label ID="lbl_tests" runat="server" Text="Please select the tests you have in mind" Font-Bold="true" ForeColor="#0066cc" AssociatedControlID="cbl_Tests"></asp:Label>
                                <asp:CheckBoxList ID="cbl_Tests" runat="server" DataSourceID="TestsDataSource" DataTextField="TestName"
                                    DataValueField="ID" AutoPostBack="True" Height="13em">
                                </asp:CheckBoxList>
                            </div>
                            <div class="cbl">
                                <asp:UpdatePanel ID="up_Software" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:Label ID="lbl_SoftwarePackage" runat="server" Text="Please Select a Software Package" Visible="false"></asp:Label>
                                        <asp:Repeater ID="repeater_Software" runat="server"
                                            DataSourceID="SoftwareDataSource">
                                            <ItemTemplate>
                                                <asp:Panel ID="panel_Header" runat="server" CssClass="dHeader">
                                                    <asp:CheckBox ID="cb_Selected" runat="server" />
                                                    Veris Level
                                                    <asp:Label ID="SoftwareLevelLabel" runat="server" Text='<%# Eval("SoftwareLevel") %>' AssociatedControlID="cb_Selected" />
                                                </asp:Panel>
                                                <asp:Panel ID="panel_Content" runat="server" CssClass="dContent">
                                                    <br />
                                                    <asp:Label ID="ProductNameLabel" runat="server" Text='<%# Eval("SoftwareName")%>' />
                                                    <br />
                                                    <asp:Label ID="ShortDescriptionLabel" runat="server" Text='<%# Eval("ShortDescription") %>' />
                                                    <br />
                                                    <br />
                                                </asp:Panel>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        </div></div>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="cbl_Tests" EventName="SelectedIndexChanged" />
                                    </Triggers>
                                </asp:UpdatePanel>
                                <asp:Panel runat="server" ID="panel_Hardware" Visible="false">
                                <div class="row new">
                                    <asp:Label ID="lbl_Upgrade" runat="server" Text="Upgrading available for price difference" Font-Bold="true" ForeColor="#0066cc"></asp:Label>
                                    <br />
                                    <br />
                                    <asp:Label ID="lbl_ChooseHardware" runat="server" Text="Choose the options from the highlighted sections" Font-Bold="true" ForeColor="#0066cc" AssociatedControlID=""></asp:Label>
                                    <br />
                                    <br />
                                    <div class="row new" runat="server">
                                        <div id="div_SystemPlatform" class="cbl" style="width: 40%;">
                                            <asp:Panel ID="panel_SystemPlatform" runat="server">
                                                <asp:Label ID="lbl_System" runat="server" Text="System:" Font-Bold="true" ForeColor="#0066cc" AssociatedControlID="lbl_SystemPlatform"></asp:Label>
                                                <br />
                                                <br />
                                                <asp:Panel ID="panel_Header" runat="server" CssClass="dHeader" BorderStyle="None">
                                                    <asp:Label ID="lbl_SystemPlatform" runat="server" Text="Platform (required for all systems)"></asp:Label>
                                                </asp:Panel>
                                                <asp:Panel ID="panel_Content" runat="server" CssClass="dContent" BorderStyle="None">
                                                    <asp:CheckBoxList ID="cbl_SystemPlatform" runat="server" DataSourceID="ds_SystemPlatform" DataTextField="SystemName" DataValueField="SystemName" OnDataBound="cbl_SystemPlatform_DataBound" Enabled="false"></asp:CheckBoxList>
                                                    <asp:SqlDataSource ID="ds_SystemPlatform" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT [SystemName], [ModelNo], [Required], [ID] FROM [PlatformQuery]"></asp:SqlDataSource>
                                                </asp:Panel>
                                            </asp:Panel>
                                            <br />
                                            <asp:Panel ID="panel_Computer" runat="server">
                                                <asp:Label ID="lbl_Comp" runat="server" Text="Computers:" Font-Bold="true" ForeColor="#0066cc" AssociatedControlID="rp_Comp"></asp:Label>
                                                <br />
                                                <br />
                                                <asp:Repeater ID="rp_Comp" runat="server" DataSourceID="ds_Computer" OnItemDataBound="rp_Comp_ItemDataBound">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="panel_Header" runat="server" CssClass="dHeader" BorderStyle="None">
                                                            <asp:Label ID="lbl_Computer" runat="server" Text='<%# Eval("BrandName")%>'></asp:Label>
                                                        </asp:Panel>
                                                        <asp:Panel ID="panel_Content" runat="server" CssClass="dContent" BorderStyle="None">
                                                            <asp:CheckBoxList ID="cbl_Computer" runat="server"></asp:CheckBoxList>
                                                        </asp:Panel>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                                <asp:SqlDataSource ID="ds_Computer" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT [BrandName] FROM [ComputerBrand]"></asp:SqlDataSource>
                                            </asp:Panel>
                                        </div>
                                        <div class="cbl" style="width: 40%;">
                                            <asp:Panel ID="panel_Amp" runat="server">
                                                <asp:Label ID="lbl_Amplifier" runat="server" Text="Amplifiers:" Font-Bold="true" ForeColor="#0066cc" AssociatedControlID="rp_Amp"></asp:Label>
                                                <br />
                                                <br />
                                                <asp:Repeater ID="rp_Amp" runat="server" DataSourceID="ds_Amp" OnItemDataBound="rp_Amp_ItemDataBound">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="panel_Header" runat="server" CssClass="dHeader" BorderStyle="None">
                                                            <asp:Label ID="lbl_Amp" runat="server" Text='<%# Eval("AmplifierName")%>'></asp:Label>
                                                        </asp:Panel>
                                                        <asp:Panel ID="panel_Content" runat="server" CssClass="dContent" BorderStyle="None">
                                                            <asp:CheckBoxList ID="cbl_AmpCh" runat="server"></asp:CheckBoxList>
                                                        </asp:Panel>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                                <asp:SqlDataSource ID="ds_Amp" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT [AmplifierName] FROM [Amplifier]"></asp:SqlDataSource>
                                            </asp:Panel>
                                            <asp:Panel ID="panel_Sti" runat="server">
                                                <br />
                                                <asp:Label ID="lbl_Stimulator" runat="server" Text="Stimulators:" Font-Bold="true" ForeColor="#0066cc" AssociatedControlID="rp_Sti"></asp:Label>
                                                <br />
                                                <br />
                                                <asp:Repeater ID="rp_Sti" runat="server" DataSourceID="ds_Sti" OnItemDataBound="rp_Sti_ItemDataBound">
                                                    <ItemTemplate>
                                                        <asp:Panel ID="panel_Header" runat="server" CssClass="dHeader" BorderStyle="None">
                                                            <asp:Label ID="lbl_Sti" runat="server" Text='<%# Eval("TypeName")%>'></asp:Label>
                                                        </asp:Panel>
                                                        <asp:Panel ID="panel_Content" runat="server" CssClass="dContent" BorderStyle="None">
                                                            <asp:CheckBoxList ID="cbl_Sti" runat="server"></asp:CheckBoxList>
                                                        </asp:Panel>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                                <asp:SqlDataSource ID="ds_Sti" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT [TypeName] FROM [StimulatorType] WHERE ([ID] = ?)">
                                                    <SelectParameters>
                                                        <asp:SessionParameter SessionField="sStiCat" Name="ID" Type="Int32"></asp:SessionParameter>
                                                    </SelectParameters>
                                                </asp:SqlDataSource>
                                            </asp:Panel>
                                        </div>
                                        <div class="row new">
                                        </div>
                                        <asp:SqlDataSource ID="TestsDataSource" runat="server"
                                            ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True"
                                            ProviderName="System.Data.OleDb" SelectCommand="SELECT [ID], [TestName] FROM [Tests]"></asp:SqlDataSource>
                                        <asp:SqlDataSource ID="SoftwareDataSource" runat="server"
                                            ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True"
                                            ProviderName="System.Data.OleDb"
                                            SelectCommand="SELECT DISTINCT SoftwareLevel, SoftwareName, ShortDescription FROM [SoftwareAndTestsJoin] WHERE (([SoftwareLevel] = ?) OR ([SoftwareLevel] = ?))">
                                            <SelectParameters>
                                                <asp:SessionParameter Name="SoftwareLevel" SessionField="sLevel" Type="Int32" />
                                                <asp:SessionParameter Name="SoftwareLevel2" SessionField="sOLevel" Type="Int32" />
                                            </SelectParameters>
                                        </asp:SqlDataSource>
                                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT DISTINCT ChannelName FROM AmplifierQuery WHERE AmplifierName = ?"></asp:SqlDataSource>
                                        <asp:SqlDataSource ID="CategoryDataSource" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT DISTINCT [CategoryName] FROM [HardwareQuery1] WHERE ([ID] = ?)">
                                            <SelectParameters>
                                                <asp:SessionParameter Name="ID" SessionField="sLevel" Type="Int32" />
                                            </SelectParameters>
                                        </asp:SqlDataSource>
                                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT DISTINCT [HardwareName], [ShortDescription] FROM [HardwareQuery1] WHERE ([CategoryName] = ?)">
                                            <SelectParameters>
                                                <asp:SessionParameter Name="CategoryName" SessionField="sCategory" Type="String" />
                                            </SelectParameters>
                                        </asp:SqlDataSource>
                                    </div>
                                </div>
                                </asp:Panel>
                                <div class="row txtR new">
                                    <asp:Button ID="btn_Next" runat="server" Text="Next" CssClass="steps" OnClick="btn_Next_Click" />
                                </div>
                    </asp:View>
                    <asp:View ID="view_ContactInformation" runat="server">
                        <p>
                            <asp:Label ID="lbl_Step2" runat="server" Text="Step 2 of 3: Contact Information" CssClass="steps"></asp:Label>
                        </p>
                        <div class="row new" style="padding-left: 20px;">
                            <asp:Label ID="lbl_Title" runat="server" Text="Title: " AssociatedControlID="tb_Title"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Title" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Name" runat="server" Text="Your Name: " AssociatedControlID="tb_Name"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Name" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TbName" runat="server" ErrorMessage="Name cannot be empty"
                                ControlToValidate="tb_Name" CssClass="fieldValidator" Text="* Name cannot be empty" SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Company" runat="server" Text="Company or Clinic: " AssociatedControlID="tb_Company"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Company" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Add1" runat="server" Text="Address 1: " AssociatedControlID="tb_Add1"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Add1" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_Add1" runat="server" ControlToValidate="tb_Add1"
                                CssClass="fieldValidator" Text="* Address 1 cannot be empty"
                                SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Add2" runat="server" Text="Address 2: " AssociatedControlID="tb_Add2"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Add2" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Add3" runat="server" Text="Address 3: " AssociatedControlID="tb_Add3"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Add3" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <br />
                            <br />
                            <asp:Label ID="lbl_City" runat="server" Text="City: " AssociatedControlID="tb_City"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_City" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TbCity" runat="server" ControlToValidate="tb_City"
                                CssClass="fieldValidator" Text="* City cannot be empty"
                                SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="lbl_State" runat="server" Text="State: " AssociatedControlID="tb_State"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_State" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TbState" runat="server" ControlToValidate="tb_State"
                                CssClass="fieldValidator" Text="* State cannot be empty"
                                SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Zip" runat="server" Text="Zip or Postal Code: " AssociatedControlID="tb_Zip"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Zip" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TbZip" runat="server" ControlToValidate="tb_Zip"
                                CssClass="fieldValidator" Text="* Zip/Postal Code cannot be empty"
                                SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Country" runat="server" Text="Country: " AssociatedControlID="tb_Country"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Country" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TbCountry" runat="server" ControlToValidate="tb_Country"
                                CssClass="fieldValidator" Text="* Country cannot be empty"
                                SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Phone" runat="server" Text="Phone: " AssociatedControlID="tb_Phone"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Phone" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TbPhone" runat="server" ControlToValidate="tb_Phone"
                                CssClass="fieldValidator" Text="* Phone cannot be empty"
                                SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Fax" runat="server" Text="Fax: " AssociatedControlID="tb_Fax"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Fax" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <br />
                            <br />
                            <asp:Label ID="lbl_Email" runat="server" Text="Your Email: " AssociatedControlID="tb_Email"></asp:Label>
                            <br />
                            <asp:TextBox ID="tb_Email" runat="server" TextMode="SingleLine"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfv_TbEmail" runat="server" ControlToValidate="tb_Email"
                                CssClass="fieldValidator" Text="* Email cannot be empty"
                                SetFocusOnError="true" Display="Dynamic">                       
                            </asp:RequiredFieldValidator>
                            <br />
                            <br />
                            <div class="new">
                                <span style="float: left;">
                                    <asp:Button ID="btn_Back2Products" runat="server" CssClass="steps" Text="Back" OnClick="btn_Back2Products_Click" CausesValidation="false" />
                                </span>
                                <span style="float: right;">
                                    <asp:Button ID="btn_Next2Message" runat="server" CssClass="steps" Text="Next" OnClick="btn_Next2Message_Click" />
                                </span>
                            </div>
                        </div>
                    </asp:View>
                    <asp:View ID="view_Message" runat="server">
                        <p>
                            <asp:Label ID="lbl_Step3" runat="server" Text="Step 3 of 3: Your Message" CssClass="steps"></asp:Label>
                        </p>
                        <br />
                        <br />
                        <div class="row new txtC">
                            <asp:TextBox ID="tb_Message" runat="server" TextMode="MultiLine" Height="10em" Width="70%"></asp:TextBox>
                        </div>
                        <asp:Label ID="lbl_Error" runat="server" Visible="False"></asp:Label>
                        <br />
                        <br />
                        <div class="row new">
                            <span style="float: left;">
                                <asp:Button ID="btn_Back2ContactInformation" runat="server" CssClass="steps" Text="Back" OnClick="btn_Back2ContactInformation_Click" /></span>
                            <span style="float: right;">
                                <asp:Button ID="btn_Quote" runat="server" CssClass="steps" Text="Request Quote" OnClick="btn_Quote_Click" />
                            </span>
                        </div>
                    </asp:View>
                    <asp:View ID="view_Confirmation" runat="server">
                        <p>
                            <asp:Label ID="lbl_Confirmation" runat="server" Visible="false"></asp:Label>
                        </p>
                    </asp:View>
                </asp:MultiView>
            </ContentTemplate>
            <Triggers>
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>

